package com.lesso.yjy.sunflower.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDate;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("base_employee")
public class Employee extends BaseModel<Employee> {
    private static final long serialVersionUID = 1L;

    public static final String NAME = "name";

    /**
     * 员工工号
     */
    @TableField("employee_no")
    private String employeeNo;

    /**
     * 员工姓名
     */
    private String name;

    @TableField("gender")
    private Integer gender;

    @TableField("birth_date")
    private LocalDate birthDate;

    @TableField("home_address")
    private String homeAddress;

    @TableField("email")
    private String email;
    /**
     * 身份证号
     */
    @TableField("id_card")
    private String idCard;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 入职日期
     */
    @TableField("entry_date")
    private LocalDate entryDate;

    /**
     * 在职状态，1在职，0离职
     */
    @TableField("employment_status")
    private Integer employmentStatus;

    /**
     * 0正常，1删除
     */
    @TableField("del_status")
    @TableLogic
    private Integer delStatus;
}